//    Copyright (c) 2009 Elwyn Malethan
//
//    This file is part of SeemoreJ.
//
//    SeemoreJ is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    SeemoreJ is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.

//    You should have received a copy of the GNU General Public License
//    along with SeemoreJ.  If not, see <http://www.gnu.org/licenses/>.

package com.malethan.seemorej.context;

import com.malethan.seemorej.Flash;
import com.malethan.seemorej.rendering.Rendering;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>Copyright &copy; 2008 Elwyn Malethan</p>
 */
public interface Context {

    public HttpServletRequest getRequest();

    public HttpServletResponse getResponse();

    public String flash(Flash type);

    public  void flash(Flash type, String value);

    void setRendering(Rendering rendering);

    boolean isRendered();

    Rendering getRendering();

    String getController();

    void setController(String controller);

    String getAction();

    void setAction(String action);

    void populateBean(String prefix, Object bean);

    void populateBean(Object bean);

    String getFormat();

    void setFormat(String format);
}
